﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>Release Notes Tool</h1>
                <h4>You can upload a Teampulse file (in CSV or XML format) and generate the Release Notes.</h4>
            </hgroup>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <h3>Upload TeamPulse file in CSV or XML format:</h3>
    <div id="mainContent">
        <asp:FileUpload ID="FileUpload" runat="server" />
        <br />
        <br />
        <%--        <section>
            <asp:Button ID="ButtonConvertCSVToReleaseNotes" runat="server" 
                Text="Convert to Release notes (in XML)" OnClick="ButtonConvertCSVToReleaseNotes_Click" />
            <asp:Button ID="ButtonConvertCSVToLatestInternalBuild" runat="server" 
                Text="Convert to Release notes (in XML)" OnClick="ButtonConvertCSVToLatestInternalBuild_Click" />
        </section>--%>
        <section>

            <asp:Button ID="ButtonConvertXmlToReleaseNotes" runat="server"
                Text="Convert to Release notes (in XML)"
                OnClick="ButtonConvertToReleaseNotes_Click" />
            &nbsp;
			<asp:Button ID="ButtonConvertXmlToLatestInternalBuild" runat="server"
                Text="Convert to LIB (in HTML)"
                OnClick="ButtonConvertToLatestInternalBuild_Click" />
            <br />
            <br />
            <asp:Label ID="LabelFileName" runat="server" Visible="true" Text="" ForeColor="Red"></asp:Label>
        </section>



        <div id="csv-instructions">
            <h2>Instructions for processing CSV files:</h2>
            <ol>
                <li>Go to <a href="http://tpdogfood.telerik.com/">http://tpdogfood.telerik.com/</a></li>
                <li>Click the <strong>"Create View"</strong> option in the left navigation bar.</strong></li>
                <li>Using the <strong>"Add filter"</strong> button, apply the following filters:
                <ul>
                    <li><strong>type </strong>- choose Story, Bug and Feature</li>
                    <li><strong>status </strong>- choose only "Done"</li>
                    <li><strong>iteration </strong>- choose the release iteration</li>
                    <li><strong>tag </strong>- choose Minor/Major</li>
                </ul>
                </li>
                <li>After the view is created, choose the <strong>Columns</strong> that should be visible. 
                For <strong>CSV </strong>parsing only the <strong>Area</strong> column should be selected.
				<img src="Images/CSV-Columns.png" width="1000" height="688" />
                </li>
                <li>Make sure that the columns are arranged in the following order:
				<table>
                    <tr>
                        <td style="border: 1px solid blue">ID</td>
                        <td style="border: 1px solid blue">Item description</td>
                        <td style="border: 1px solid blue">Area</td>
                    </tr>
                </table>
                    <img src="Images/CSV-View.png" width="auto" height="auto" />
                </li>
                <li>Sort the data by the <strong>Area</strong> column in <strong>ascending order</strong></li>
                <li>Choose <strong>Actions -> Export to CSV (visible columns)</strong> and save the file in a local directory.
                <img src="Images/CSV-Export.png" />
                </li>
                <li>Browse the file and click <strong>Convert To Release Notes</strong> or <strong>Convert to Latest Internal Build</strong> button</li>
            </ol>
        </div>

        <div id="xml-instructions">
            <h2>Instructions for processing XML files:</h2>
            <ol>
                <li>Go to <a href="http://tpdogfood.telerik.com/">http://tpdogfood.telerik.com/</a></li>
                <li>From the menu bar choose <strong>Planning -> Backlog</strong></li>
                <li>Choose the following settings from the Filters section
				<ul>
                    <li><strong>Filter by Area</strong> - choose the asp controls you want  or choose All</li>
                    <li><strong>Filter by Iteration</strong> -  select the specific Iteration/Q/Team or check the whole Project folder</li>
                    <li><strong>Filter by Status </strong>- select <strong>Completed Group -> Done</strong></li>
                    <li>
                        <strong>Filter by Tag</strong> - 						
						select <strong>Minor/Major</strong> depending on whether you want notes for LIB(Service pack)/Q1, Q2, Q3

                    </li>
                    <li><strong>Filter by Type </strong>- select <strong>Story</strong> and <strong>Bug</strong></li>

                </ul>
                </li>
                <li>Open the <strong>Edit Columns</strong> tab and select <strong>Area, Last Modified and Type</strong>
                    <img src="Images/Screen-Edit-Columns.png" width="1000" height="550" />
                </li>
                <li>Make sure that the columns are arranged in the following order:
				<table>
                    <tr>
                        <td style="border: 1px solid blue">Type</td>
                        <td style="border: 1px solid blue">Name</td>
                        <td style="border: 1px solid blue">Area</td>
                        <td style="border: 1px solid blue">Last Modified</td>
                    </tr>
                </table>
                </li>
                <li>Filter the data by the <strong>Last Modifed column</strong>  - choose the <strong>Is greater than</strong> filter
				and set the date <strong>1 day after</strong> the previous Latest Internal Build/Release
				<img src="Images/Screen-Sort-By-Date.png" width="1000" height="550" />
                </li>
                <li>Sort the data by the <strong>Area</strong> column in <strong>ascending order</strong> (see the image below) - 
				Switch to the sortable and groupable view of the backlog and then sort by Area </li>
                <li>Your final view should look like
				<img src="Images/Screen-Switch-to-Group-View.png" width="1000" height="550" /></li>

                <li>Choose <strong>ExportTo -> ExcelML</strong> and save the file (the default filetype is .xml) in a local directory</li>
                <li>Browse the file and click <strong>Convert To Release Notes</strong> or <strong>Convert to Latest Internal Build</strong> button</li>
            </ol>
        </div>
    </div>
</asp:Content>
